package com.work.flow.feign;


import com.work.flow.model.BaseResult;
import com.work.flow.model.ParamAddField;
import com.work.flow.model.ParamCalculateField;
import com.work.flow.model.ParamStatisticsAnalysis;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient(name = "ShpFeignService", url = "${engine.python}" ,qualifier="ShpFeignService")
public interface ShpFeignService {

    /**
     * 审核完成后的保单向核心推送
     *
     * @param
     * @return
     */
    @GetMapping("/users")
    String test(@RequestParam String id);
    /**
     * 筛选
     *
     * @param
     * @return
     */
    @PostMapping("/SelectAnalysis")
    BaseResult SelectAnalysis(@RequestBody Map<String,String> param);
    /**
     * 添加字段
     *
     * @param
     * @return
     */
    @PostMapping("/AddField")
    BaseResult AddField(@RequestBody Map<String,String> param);
    /**
     * 添加字段
     *
     * @param
     * @return
     */
    @PostMapping("/CalculateField")
    BaseResult CalculateField(@RequestBody Map<String,String> param);

    /**
     * 统计汇总
     *
     * @param
     * @return
     */
    @PostMapping("/StatisticsAnalysis")
    BaseResult StatisticsAnalysis(@RequestBody Map<String,String> param);


    /**
     * 统计汇总
     *
     * @param
     * @return
     */
    @PostMapping("/{type}")
    BaseResult analysis(@RequestBody Map<String,String> param, @PathVariable String type);


}
